using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;

using OrbitOne.Feed.Domain;
using OrbitOne.Feed.Interfaces;

namespace OrbitOne.Feed.DummyFeedLoader {
    public class DummyFeedLoader : IWebFeedDataLoader {

        #region IWebFeedDataLoader Members

        public OrbitOne.Feed.Domain.WebFeed DoLoad() {
            
            WebFeed webFeed = new WebFeed(
            CultureInfo.CreateSpecificCulture("en-us"), 
            "Title", 
            DateTime.Now, 
            new Uri("http://myUrl.Com"), 
            "Description");

            webFeed.Author = new Author("feed authorname", "feedauthor@server.com");
            webFeed.Copyright = "Copyright";

            Topic firstTopic = new Topic(
            "title1", 
            DateTime.Now.AddHours(2),
            @"PRIO Conference and Ready for a New Day
I will attend the PRIO Conference in Baden-Baden/Germany, the conference will be held from 15-16th November. Next, on 1st December I will attend the Ready for a New Day Windows Vista and Office System 2007 product launch in Frankfurt. I would be happy to meet you or have a lunch together.
Share this post: Email it! | bookmark it! | digg it! | reddit!
 by interactive on 16/10/2006 20:11Read more | Open in browser
AjaxPro Source Code available!!
Today I put the source code online at http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro. New releases will be still uploaded to http://www.ajaxpro.info/. If you find any error, bug or problem please ask the community first at http://groups.google.com/group/ajaxpro/. There is a search box for all post that may help. Bugs that are not fixed in the Google group should be added to the issue tracker page at http://www.codeplex.com/WorkItem/List.aspx?ProjectName=AjaxPro.
", 
            new Uri("http://mytopicuri.com/topic1"));
            firstTopic.Categories.Add(new Category("firstCategory"));

            Author author1 = new Author("authorname", "me@server.com");
            firstTopic.Author = author1;

            Content content = new Content(
              new Uri("http://design.infragistics.com/images/FW_XAML_Guide.pdf"),
              5650889,
              MimeTypes.pdf);

            firstTopic.Content = content;
            webFeed.Topics.Add(firstTopic);

            Topic secondTopic = new Topic(
            "title2", 
            DateTime.Now, 
            "TopicDescription2", 
            new Uri("http://mytopicuri.com/topic2"));
            secondTopic.Categories.Add(new Category("secondCategory1"));
            secondTopic.Categories.Add(new Category("secondCategory2"));

            Author author2 = new Author("authorname", "me@server.com");
            secondTopic.Author = author2;

            webFeed.Topics.Add(secondTopic);

            return webFeed;
        }

        #endregion
    }
}
